﻿/***********************************************************************
 * <copyright file="GroupMenuDescription.cs" company="VidaGIS">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   Hoang Bich Son 
 * Email:    sonhb@vidagis.com or bichson2002@gmail.com
 * Website:
 * Create Date: Tuesday, November 25, 2014
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System;
using BusinessObjects;
using BusinessObjects.BusinessRules;

namespace BusinessCMS
{
    /// <summary>
    /// GroupMenuDescription class
    /// </summary>
    public class GroupMenuDescription : BusinessObject
    {

        public GroupMenuDescription()
        {
            AddRule(new ValidateRequired("GroupMenuId"));
            AddRule(new ValidateRequired("LanguageId"));
            AddRule(new ValidateLength("GroupMenuName",0,255));
            AddRule(new ValidateLength("Description", 0, 500));            
        }
        public GroupMenuDescription(int groupMenuId, short languageId, string groupMenuName, string description, DateTime? modifiedDate)
            : this()
        {

            GroupMenuId = groupMenuId;
            LanguageId = languageId;
            GroupMenuName = groupMenuName;
            Description = description;
            ModifiedDate = modifiedDate;
        }

        /// <summary>
        /// Gets or sets the group menu.
        /// </summary>
        /// <value>
        /// The group menu.
        /// </value>
        public GroupMenu GroupMenu { get; set; }

        /// <summary>
        /// Gets or sets the group menu identifier.
        /// </summary>
        /// <value>
        /// The group menu identifier.
        /// </value>
        public int GroupMenuId { get; set; }

        /// <summary>
        /// Gets or sets the language identifier.
        /// </summary>
        /// <value>
        /// The language identifier.
        /// </value>
        public short LanguageId { get; set; }

        /// <summary>
        /// Gets or sets the name of the group menu.
        /// </summary>
        /// <value>
        /// The name of the group menu.
        /// </value>
        public string GroupMenuName { get; set; }

        /// <summary>
        /// Gets or sets the description.
        /// </summary>
        /// <value>
        /// The description.
        /// </value>
        public string Description { get; set; }

        /// <summary>
        /// Gets or sets the modified date.
        /// </summary>
        /// <value>
        /// The modified date.
        /// </value>
        public DateTime? ModifiedDate { get; set; }
    }
}
